package p.ithorns.tools.translator.annotation;


/**
 * 字典bean
 * 只有code和text，可用于展示下拉框
 *
 * @author ithorns
 */

public class BaseDict<T> implements IDict<T> {
    /**
     * 字典编码
     */
    private final T code;
    /**
     * 字典名
     */
    private final String text;

    public BaseDict(T code, String text) {
        this.code = code;
        this.text = text;
    }

    @Override
    public T getCode() {
        return code;
    }

    @Override
    public String getText() {
        return text;
    }

}